package com.jinglin.mapper;

import com.jinglin.entity.dto.UserMessageCountDto;
import com.jinglin.entity.po.UserMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinglin.entity.po.VideoPlayHistory;
import com.jinglin.entity.query.UserMessageQuery;

import java.util.List;

/**
 * <p>
 * 用户消息表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2025-04-06
 */
public interface UserMessageMapper extends BaseMapper<UserMessage> {

    int count(String userId);

    List<UserMessage> loadMessage(int start, Integer pageSize, String userId, Integer messageType);

    Integer countGroup(String userId,Integer readType);

    List<UserMessageCountDto> getMessageTypeNoReadCount(String userId);
}
